<!-- HTML5 sekce pro články -->
      <section id="content">
        <?php if (Auth::instance()->logged_in('admin')): ?>
        <span class="button-white"><a href="<?php echo url::base(); ?>blogs/add" title="Přidat nový příspěvek">Přidat příspěvek</a></span>
        <span class="button-white"><a href="<?php echo url::base(); ?>blogs/my" title="Můj blog">Můj blog</a></span>
        <?php endif ?>
        <?php foreach ($blogs as $item): ?>
        <div class="block aside">
          <div class="block-left">
            <article class="article">
              <header>
                <h2><a href="<?php echo url::base() ?>blog/<?php echo $item->id.'-'.$item->seo_title ?>" title=""><?php echo $item->title ?></a></h2>
              </header>
              <section>
                <?php if (! empty($item->preview_image)): ?>
                  <img title="<?php echo $item->title ?>" src="<?php echo url::base() ?>files/users/<?php echo $item->username ?>/blog_<?php echo $item->date ?>.jpg" alt="<?php echo $item->title ?> - Fotografie k příspěvku" />
                <?php endif ?>
                <p><?php echo preg_replace('/\s+?(\S+)?$/', '', substr(strip_tags($item->text), 0, 700)) ?>&hellip</p>
              </section>
              <div class="article-bottom article-bottom-simple"><span class="float-left"><img src="<?php echo url::base() ?>media/img/icons/mini_hearth.png" alt="Oblíbený"><strong>13</strong><img src="<?php echo url::base() ?>media/img/icons/mini_bubble.png" alt="Komentářů"><strong><?php echo $item->blog_comments->count_all() ?></strong></span><a href="<?php echo url::base() ?>blog/<?php echo $item->id.'-'.$item->seo_title ?>" class="more float-right" title="">číst příspěvek</a></div>
            </article>                                      
            <div class="clear-both"></div>            
          </div>
          <aside class="block-right">
            <h3><?php echo Helpers_Photovoice::datum($item->date, 'full') ?></h3>
            <h3 class="min" style="text-align:left">Tagy</h3>
            <div class="aside-item-line">
            <?php
            foreach ($item->blogs_tag->find_all() as $cat_item) {
              echo $cat_item->tag . '<br />';
            }
            ?>
            </div>
          </aside>
          <div class="block-bottom aside-bottom"></div>                     
        </div>
        <?php endforeach ?>
      </section>